package com.egoo.ticket.server.service;

import com.alibaba.fastjson.JSONObject;
import com.egoo.ticket.server.pojo.dto.WorkOrderFieldReflectDto;
import com.egoo.ticket.server.pojo.entity.WorkOrderFieldReflect;
import com.egoo.ticket.server.utils.common.DbResponse;

import java.util.List;

/**
 * @Author Donny_Dong
 * @Description //TODO 外部工单字段映射接口
 * @Date 15:37 2019/12/25
 * @Param
 * @return
 **/
public interface WorkOrderFieldReflectService {

	/**
	 * 创建字段映射
	 * @param workOrderFieldReflectDto
	 * @return
	 */
	DbResponse creat(WorkOrderFieldReflectDto workOrderFieldReflectDto);

	/**
	 * 获取工单字段对应的翻译
	 * @param id
	 * @return
	 */
	DbResponse getWorkOrderFieldMeaning(Integer id);

	/**
	 * 翻译字段
	 * @param dataList
	 * @param jsonObject
	 * @return
	 */
	List<WorkOrderFieldReflect> translateField(List dataList, JSONObject jsonObject);
}
